﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ClientAlertsCtrl.ascx.cs" 
	Inherits="WebApplication.Finance.Controls.ClientAlertsCtrl" %>

<asp:UpdatePanel ID="updatePanel1" runat="server" UpdateMode="Always">
<ContentTemplate>

<div style="margin:auto; margin-top:10px; width:500px;">
		<asp:GridView ID="gridAlerts" runat="server" AutoGenerateColumns="False" 
			HorizontalAlign="Center" DataKeyNames="ClientAlertId" 
			GridLines="None" BorderStyle="None" CellPadding="4"
			Font-Names="Verdana" onrowdatabound="gridAlerts_RowDataBound" 
			onrowcommand="gridAlerts_RowCommand">
		<Columns>
			<asp:BoundField DataField="UserAsText" HeaderText="Target">
				<HeaderStyle HorizontalAlign="Left" />
				<ItemStyle HorizontalAlign="Left" Width="168px" Font-Bold="true" />
			</asp:BoundField>
			<asp:TemplateField HeaderText="All">
				<ItemTemplate>
					<asp:CheckBox ID="chkFilterAll" runat="server" />
				</ItemTemplate>
				<ItemStyle HorizontalAlign="Center" />
				<HeaderStyle HorizontalAlign="Center" />
			</asp:TemplateField>
			<asp:BoundField DataField="ModifiedAsText" HeaderText="Modified" >
				<HeaderStyle HorizontalAlign="Left" />
				<ItemStyle HorizontalAlign="Left" Font-Size="10px" Width="100px" Wrap="true" />
			</asp:BoundField>
			<asp:ButtonField ButtonType="Button" Text="Delete..." CommandName="DeleteAlert" />
		</Columns>
		<HeaderStyle Font-Size="12pt" Font-Bold="True" Font-Names="Arial"  HorizontalAlign="Left" />
		<RowStyle Font-Size="11pt" Font-Bold="False" Font-Names="Arial" CssClass="UnderlineBorder" />
		<EmptyDataTemplate>
			<asp:Label ID="Label1" runat="server" Text="There are no client alerts."></asp:Label><br />
			<asp:Label ID="Label2" runat="server" CssClass="Instructions" Text="Use the boxes below to add a new client alert."></asp:Label>
		</EmptyDataTemplate>
		</asp:GridView>
</div>

<asp:Panel runat="server" ID="pnlAddAlert">
<div style="margin:auto; margin-top:10px; width:520px;">
<table border="0" style="padding-left:54px;">
	<tr>
		<td style="width:184px;"><asp:DropDownList ID="cboNewTarget" runat="server" style="width:174px;"></asp:DropDownList></td>
		<td style="width:30px;"><asp:CheckBox ID="chkNewFilterAll" runat="server" /></td>
		<td style="width:100px;"><asp:Button ID="butAdd" runat="server" Text="Add" onclick="butAdd_Click" /></td>
	</tr>
</table>
</div>
</asp:Panel>

<div style="margin:auto; margin-top:10px; width:420px;">
	<asp:Label ID="lbNote" CssClass="Instructions" runat="server" Text='Note: Check "All" to include all new accounts in the report.  Leave "All" unchecked to include only the account managed by the staff member.'></asp:Label>
</div>

<!-- Report settings -->
<div style="margin:auto; margin-top:30px; width:520px;">
	<table class="GridColumnLabel" cellpadding="0" cellspacing="0" border="0" style="padding-left:50px;">
		<tr>
			<td><asp:Label ID="Label3" runat="server" Text="Send the report daily, at the following time:&nbsp;"></asp:Label></td>
			<td><asp:DropDownList ID="cboSendTimeMinutes" runat="server"></asp:DropDownList></td>
		</tr>
	</table>
</div>

</ContentTemplate>
</asp:UpdatePanel>

